First attempt to support explicit list definition

Obscure bug detected on simplexmlelement flattening