RF: Use integer datatype for unique_rows sorting.

Does this address the following issue? 
https://github.com/nipy/dipy/issues/505