Fix changed API for DynamicObject/ObjectPointer