Updated dotgen_argument.php to use data structure defined in datagen_db.php.

Also fixes some bugs in the UI drawing as a side effect.