Use correct namespaces in sequences with imported elements.

When using arrays in requests, the namespaces are not correctly set if the elements are from another namespace.

Including test.