Add and use `eligible_object_restriction`

Use `eligible_object_restriction` to restrict entities offered for
completion to those satisfying the resource-specific restriction, if
any.