Change allocation in WCS.sub.

This is a subset of #2361 that we should put in 0.3.x if possible, as it's less invasive.  Without it, I'm currently getting crashes in the test suite on my machine in 0.3.x and master (though Travis doesn't seem to care).