handle case-in-goal in a better way

for case index lookups, treat any unknown field name as a case id field
Merge pull request #30 from dimagi/better-case-in-goal

handle case-in-goal in a better way