Fixed helper function for ParameterizedFunction.__reduce__; incorporates Chris Ball's changes in pull request 50