Fix for Serializable interface

close #3
Fix for __sleep and __wakeup

crash during class creating