Persistent variable is serialized together with view cache, complex objects like nodes are not serializable. You would have gotten the same problem if you tried to store the object in some shm cache. Pass the id instead or something.
Too bad. When 64 out of 65 times it worked, I thought I could successfully pass that just as a reference ;) Actually, it's lucky that it failed this one time ;)