more generic findRoot

Reason: allow findRoot be used in `@safe @nogc nothrow` code.