Cast element label to string

Fixes an issue where passing an Object that implemented __toString() was causing
an "Illegal offset type in isset or empty" error in the translation helper.
Add tests for #216
Merge pull request #216 from rmasters/fix/string-cast-label

Cast element label to string