Add DictMixin/OrderedDict to theano.compat in PY3.

Reordered for ease of reading (same order in both branches of the if/else).