bug 1092231 - fix traits to work with Symbols

`Symbol`s and these iteration changes are currently in Nightly builds only, and the decision for this to merge to Aurora in a month has not been made yet (it looks likely, but it's not final). and even after that point, it could still get backed-out in case it causes some web compatibility issues, so i think we should still leave this at least until it reaches Beta..