Need to tidy the expression before compiling it, purely in order to clone the ids in case of clashes.