Is it possible to define this object without need to create types for each property? Something like: { group : { collapsed : 31, expanded : 120 } , terrain ... } (this is syntax from different language.
Strange. Everything should work. http://coliru.stacked-crooked.com/a/9e88efc762d4c83e
Is this a first error? Because previous errors might lead to false positives in later lines. Post minimal compiling example which reproduces your problem.