Fix #611 - do not take locally-bound names into account when calculating...

... binding groups

@garyb @joneshf @jdegoes Would somebody like to review this?

_Edit_: core-tests and purescript-test-everything still work after this change.