renamed category index field range args and added third type for datetime fields