Marshal pointer values

I added marshalling of pointer values.

It is extracted from https://github.com/gocql/gocql/pull/273.