Twist of generalized skyrmions and spin vortices in a polariton superfluid