[core] move pickle imports to pymor.core.pickle module
[core.pickle] add methods for pickling function objects
[functions.basic] make GenericFunction in more cases picklable
[test] add tests for Functions