Implement __set_state to recover var_export data