Added 'constant folding' to optimizations.