Pickle and Unpickle theano functions

Added a test case to verify if pickle and unpickle a compiled theano function works.
Passed.

This is the follow up of gh-1945
instead of using cPickle.{dump,load} use cPickle.{dumps,loads} That way, you won't create a file in the test and the test will be as good.