CRM-15299 fix caseType behaviour on getcount
CRM-15299 generic fix on handling apistyle query filters in query object