Add test for date-tuple comparable int function.
Change 2nd arg of optimal_array_structure to simple list of arrays.
Independent tests for optimal_array_structure.