Support for Postgres range types.

Finally got around to doing the docs, so should be good to merge.