surface: fix serialization of boolean attributes.