Added support to write a logical vector (LGLSXP)

* Added support to write a logical vector.
* Added test to support of writing logical vector.
* An integer vector (INTSXP) is now written as a signed
  32 bit integer instead of double.
Updated to version 0.0.8