fix uuid variants

Variants we're not being read or set correctly because the bits were being improperly masked for reading or not set in accordance with RFC 4122 4.1.1