fixed bug converting mapping array arguments to map.

having an uneven # of args in an array results in adding an 'undefined' argument to generated scripts.