Reformat code.
Remove AdvancedOptRulesTest, now all of its tests have been moved into RelOptRulesTest.
Reformat code.
Fix bug in planner which occurred when two RelNodes have identical digest but different row-type.

More specifics: Running OptiqSqlOperatorTest.testCharacterLengthFunc with constant-reduction rules enabled, one ProjectRel had an INTEGER null literal and another had a VARCHAR null literal.