Fix Variant to support structs with "length" field of inappropriate type

Fixed handling of a struct with no "length" field defined but with opDispatch of inappropriate type.