fix $fromArray to maintain order of elements
0.21.7