BUG: Fix passing of origins in ndimage.rank_filter.