support pointer fields during encoding