minor fix resolving attributes to ensure that the output is
deterministic. Attributes are now output in the order they were
encountered in the haml source. Tests updated accordingly to not
take into account alternative representations.