I think we only need to check if it's numeric (that's what couchdb supports for group_level afaik)