Improve error message in wcs.sub

We should get a TypeError rather, rather than a ValueError when passing
a single string to `wcs.sub`.

Partially addresses #1587.