Make valueToSQLLiteral type-safe (getting rid of hasLiteralForm)
Reduce boiler-place for type literal representations