make StepDict.items() deterministic.

see issue #464. dict.items() returns items in non-deterministic order.
for python 2.6 use `ordereddict.OrderedDict` and for python 2.7 use
`collections.OrderedDict`.