Clone array/hash attributes in addition to container scalars

This fixes https://rt.perl.org/rt3/Ticket/Display.html?id=118559, passing spectests.

It accomplishes by including arrays and hashes (identified by their sigil) when deciding whether to make copies of certain attributes.