[COMMIT] Fix some bugs in #'substitute, #'nsubstitute.