added support for explicit lengthed sequence elements
and explicit lengthed sequence items