Fix assert when compiling an rcurry on element-setter