Fix node inclusion

`groupBy` seems overkill here. Why not the following:
```scala
val commonJSNames = sameName.map(_.commonJSName).filter(_ != None)
if (commonJSNames.size > 1 &&
    commonJSNames.tail.exists(_ != commonJSNames.head))
  throw new ConflictingNameException(sameName)
```