support arbitrary filter value types
Merge pull request #4716 from dimagi/arbitrary-filter-values

support arbitrary filter value types