Add regression test for strings as keys on associations

This ensures that nothing is raised and it can correctly find the
association when strings are used as keys.

The `test_has_and_belongs_to_many_reflection` had to also be changed
to match master so this test would pass.