Fixed handling of a struct with no "length" field defined but with opDispatch of inappropriate type.
Merge pull request #2062 from yglukhov/patch-1

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