ranges: introduce rl_invert(), rl_filter() and rl_intersection()