Fix an issue related to the usage of some internal array structure and updating classes, properties and ontologies. Unexpected behaviors were happening for some usecases.