Changed mode.py to use local OrderedDict when necessary.
Updated conf/terraria.py.template.