BigIntegerSerializer, BigDecimalSerializer, TreeMapSerializer and TreeSetSerializer optimizations and enhacements.

Fix #166, Fix #238: Proper handle of subclasses and small optimizations for common BigDecimal and BigIntegerconstants