pidl/Samba4::NDR::Parser: move logic for extra get_pointer_of() into a function