Add test code for boost/optional and boost serialization.