I did some work on `json` and `hstore` columns a while back to cast them directly, I'll look into it for array columns too. This is another discussion though. Patch looks good.