add support for pointer & byref type serialization