Search by actual primary key of association (select filter)

Possible fix for #2382
Check before calling klass.primary_key
Update to fixed hmt filters
Do nothing if it's an unsearchable through association
This is going to require a manual test
Fix against polymorphics
Remove unnecessary parentheses