Merged classes VarInt and FixedSize into a single PrimitiveEncoding class.