Break SqlTypeStrategies into OperandTypes, ReturnTypes and InferTypes, and rename its static members to upper-case, per checkstyle.

Upgrade "spark" module and fix checkstyle exceptions.