unit tests show a gui if --showgui option is given
reorganize command line options
fixup initialization list

(to address reorder warning)
cleanup wml unit tests code

replace a complicated type with a typedef,
add some comments