Test that boost::lexical_cast works with dynamic_t.