couple of little optimisations to the expression compiler