fix static call through abstract instance check (see #3616)