Correct source for in_clause_length for eager loading (Fix for #8474)

#8474 issue source links are a bit outdated yet the bug still persists. This PR makes eager loading seek for the `in_clause_length` option at the relation klass instead of the host model. Tests are also fixed.

/cc @tenderlove