CountedArray creation from managed array