serialize/unserialize method of Scheme object