Added get_distance_type and get_distance_order methods to the C API to
assist in debugging set_distance_type in the Ruby API.
Lots of bug fixes and improvements. Had to disable for int32 temporarily
while I sort that out. This also adds the max_k option to radius_search
as discussed in #170.