Use Array for streams instead. More exports and tests

- get_sorted_array is removed. TimeSlot is static anyway.