For whatever reason, I couldn't get that kind of block to work. It refused to set the array after the duplicates were removed. I thought I did everything correctly. If somebody knows how to make it work as an action block, I am open for a fix. For now, use the set list block with the remove duplicates block.