Fix NPE using TRIM function with JDBC.

Symbols have a null family.
Add methods for dealing with symbols.

Add SqlTrimFunction.Flag.symbol(SqlParserPos), SqlLiteral.booleanValue(), SqlLiteral.symbolValue();
deprecate SqlLiteral.booleanValue(SqlNode), SqlLiteral.symbolValue(SqlNode).