Fixes direct array clone

Particularly for cycles, but also takes a shortcut on ownership
verification for speed.
Merge pull request #50 from kriskowal/shim-array-clone-fixes

LGTM