Fix bug when renaming @type blank nodes when flattening.