Fix SqlTypeByteCodeExpression

Previously it would fail for any type whose name was not a valid java
method name
Enable MaxBy tests for all types