[Olena-patches] milena r1378: Fix convert_to_set_p and add tests