Small fixes

- serialize of an object fails in the Browser, because Buffer is not existing
- An instance of a class can be serialized now, because the const_name is `undefined`of an instance