Refactor IMD loading code to prepare for WZM format.
Misc cleanup forward ported for intdisplay.cpp
qtscript: Add DORDER_RECYCLE. Add optional filter parameter to enumLabels().