Add regression tests for keys on nested associations

This adds the regressions tests from PR #15893 to master. It's checking that both strings and symbols are accepted as keys for nested associations.
And by test at a more granular level, I meant actually passing a string or symbol to the reflection method in question, if that's what we want to test.