Fix memory leak in python fit functions.

The result returned from the function1D/functionLocal call needs to have
its reference count decremented as the returned array is a new numpy
array.
Refs #9265
Merge remote-tracking branch 'origin/bugfix/9265_python_function_memleak'