Convert array datasources to dictionary objects.