Quite right.  I must have made some mistake in the syntax when I was working on this that made me think that scope wouldn't work, but what you suggest seems to work fine.  I'll update the pull request.