merged 8a099d0ded62c8e5a31ce4b162120febf6c1d645 from golang/protobuf this also removed an extra check in the text_parser && dst.Kind() == reflect.Ptr on line 529