Fix `isHeadImplicitADerivation` check
Fix `isHeadImplicitADerivation` check

`openImplicits` is a stack, so the last candidate in the list is actually the
first in the implicit search.

pureconfig/pureconfig,melrief/pureconfig