add nil check to generated isEqual for repeated fields

I believe this will fix issue #35