check for conflicting scope names, fixes #3