Allow accessing dimension attributes with strings

Fixes #232
Merge pull request #245 from janko-m/fix-string-keys

Allow accessing dimension attributes with strings