Enforce symbols for element attributes.

This comes with a little bit of memory overhead but this should be minor in
most cases.