Oh? Interesting! Found the issue. There is an assumption in the script that the token is on a given layer. Changing Line 231 to this should fix it: layer: (_.contains(["gmlayer", "objects", "map"], t.layer) ? t.layer : 'gmlayer'),
If you wanna test that real quick, I can submit a patch.