Added a helper function for unserialization in php 5.3. See testClosureObjectinObject() from tests