Autocomplete filters by type properly for one-to-one joins