Added a test for allowing dynamic dictionary-style field access

Closes #559