Fix copy of slice of pointers to struct.

If you try to encode a struct like:
RepeatedFoo {
    Foo []*Foo
}

It fails giving an error: reflect.Set: value of type Foo is not assignable to type *Foo
The bug is obvious. I have a simple fix.