Minor improvements in imcs_join_unsorted