@juliantaylor In the last commit I have littered PyArray_SearchSorted with comments with my reference counts to dtype. I'd appreciate if you could take a look and confirm that I am getting it right this time.