Add unit vector transformation - compilaiton bug when returning wrong type when magnitude is zero