Added primitive Package encoding / decoding