add nil check to generated isEqual for repeated fields