cherry-picked the num_array.rb file and merged that into main since it is needed for tests to pass