Array: fixed an off by one bug
Sort: updated all places that were sorting double to use CSPL_Sort_mergesort()