compiler: Do not dereference a named pointer type when looking up a method.