Explicitly pass SceneGraph to serialize method.