ul construct: Support attributes as first argument
Return generated elements.

Thanks to that insert will work properly if passed as argument