Fix function parameters

When an optionnal parameter is not a scalar type it value is create only once.
@see src/pymfony/component/system/test/test_func_params.py
Replace re.match by re.search
Remove unused import