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