Allow for input of arguments in reverse order in contract and expand commands (closes #721)