ObjectType is now passed as an enum instead of a plain number. The underlying type for both ObjectType and VirGLCommand have been reduced to u8 to make sure they fit in the encoded command. Command length is verified to not overflow u16.