Implement and test range queries for numeric, boolean, and alpha types.