TASInputDlg: Fix var shadowing warnings and unused variable warnings.