script: Use atom comparison in more places, especially for attributes.

75% improvement in style recalc for Guardians of the Galaxy.
auto merge of #3623 : pcwalton/servo/use-atoms-2, r=jdm

75% improvement in style recalc for Guardians of the Galaxy.