#876768 by Dave Reid: Fixed pattern variables not renamed or deleted if node type or taxonomy machine names are changed or deleted.