Fixed serialization of Observable objects.