Fixed issue #42 caused by using DataObject::add_extension() instead of Object::add_extension()