Fix nested multi-token macros in delims

Fixes #313

`getName` was checking just the range, which gets clobbered, so the tokens end up getting the exact same range. I've changed it to check `sm_range` first which has the original location.