Add regression tests for keys on nested associations

This adds the regressions tests from issue #15893 to
master. It's checking that both strings and symbols are
accepted as keys for nested associations.
Merge pull request #15999 from eileencodes/add-regression-tests-for-keys-on-nested-associations

Add regression tests for keys on nested associations