[sqltypes] Add support to serialize and deserialize them
Get rid of panic and use iota
Refactor repeated logic to helper method writeBinary
Merge pull request #62 from rajatgoel/master

[sqltypes] Add support to serialize and deserialize them