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
Currently setting this flag to True do nothing. So can you add a note that currently it don't work?