[cleanup] Made the groups and studies record tables code closer to the AllData code
Issue #834: The Filters area in the "Group Cases" table looks broken
Fixed (studies as well)