Pickle and Unpickle theano functions

Added a test case to verify if pickle and unpickle a compiled theano function works.
Passed.
If you implement \__getstate__ anyway, doesn't this overrides the implementation of pickle_rm_attr.