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

~2x improvement in style recalc for CNN.

r? @jdm
Why is the * needed here?