encoder: dereference pointer

Pointers were not derefenced and as a result generated incorrect code.

Example struct which fails:

    type T Struct {
        Value *int64
    }