Fix type of set?. Closes PR13509.