Honor @noinline

Use our own `foreignIsImplClass` instead of `.isImplClass`. The latter is broken for impl classes compiled in a different run.