clone attributes

This prevents the attributes from being mutated during the build
process, if they have been specified.
Add tests to ensure sequences work properly
Merge pull request #27 from RustyToms/sequences-with-specified-attributes

Fix sequences with specified attributes