SerializerBase: split large methods into smaller methods, so it is JIT friendlier. Rework Integer and Long serialization (backward incompatible change).

Thanks to Jacob Dilles for inspiration
SerializerBase: optimize serialize() method a bit
String serializer: small speedup for using Charset instead of its name