elementset can be initialized with nested arrays
implements length for ElementSet