Internal structure and stability of vortices in a dipolar spinor Bose-Einstein condensate