generator: Made generate_func_parameters nested func
argument -> arg
par, parameters -> param, params
test_misc.py: Fixed typo