serialization: don't add __LivelyClassName__ property to registered objects if those don't have a class