Discover and fix issue #15.

The fix needs to be carried over to casArray as well, and the tests need to be updated.

I'm not sure how this fix should be pushed into GHC... it comes at a bad time re: 7.8.