Fix .getType() for anonymous constructors