Fix the use of a multi-level object key (e.g. foo.bar) as the key for an index lookup inside non-self-closing tags.

Closes #521.
Merge pull request #522 from sethkinast/nested-key-array-access

Fix the use of a multi-level object key (e.g. foo.bar) as the key for an index lookup inside non-self-closing tags.