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.
Can you elaborate what you mean by test at a more granular level?