Merge pull request #1136 from btmills/faster-unreachable

Fix: Speed up no-unreachable (fixes #1135)
Fix: no-unreachable should check top-level statements (fixes #1138)