transform_iterator support for scatter_if added along with test cases