handle case-in-goal in a better way

for case index lookups, treat any unknown field name as a case id field