Added writing boost::optional