Fix instanceof test in PgType.equals
Actually use the BigDecimal with the fraction digits set
Fix compare of two Integer values to use equals instead of ==
Change string compare with ==  to \!isEmpty
Change finalize() method from public to protected for security reasons
Make static fields final
Use StringBuilder append instead of string concatenation
Fix potential NullPtr by only referencing Reference.get() once
One more field to final
Change SQL fields to private
Add default to switch clauses to keep code analyzers happy