Fix type of set?. Closes PR13509.
Fix heterogeneous vector typechecking.