Basic support for quaternions.