add Scope.prototype.isUsedName

Fixes #8. No tests or documentation since there's no tests or documentation.