Fix repeated field copy loop

This PR will collect fix for protobuf repeated field and eventually other type of vector copy with loop.