Detect whether to use int4range or bioseg index on location

Add a new post-process that detects whether to create an int4range or bioseg index, uses the same logic as SqlGenerator when it decides which to use in queries. Fixes #878.