Add the ability to query on ids for objects

For example: `Query.new { |obj| obj.author.id == "foo" }`