Merge pull request #153 from reaperhulk/hash-ctx-copy-api

When copying a hash, pass the api through to the new object