Revert "Compiler: Reduce constant folding of '.'." This change had several unintended consequences. This reverts commit e86ee2f842b5cbe1ef56104f7104a1dec944dbc1.