Optimiser can't parse range queries, don't test precomputing them.
Fix tests broken during merge.
Add comment explaining why range constraints are commented out.
Improve log warning message.