Simplified serializer to reduce one data copy, and made the GetI* / SetI* implemetation methods private.