Add support for replacing templates within record types.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=51660815
Rotate commutative operators to eliminate parens.

Also, remove rotation in ReorderConstantExpression when it would add parens.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=51667839