Refactored handling of array child ids per issue #21