Add support for quaternion and direction types