SerializerBase: negative longs and integers were not packed. Fixed and added unit tests for size

Related to #202