don't log type mismatch errors when querying against references with Keys
fixes #483