Wt::Dbo: reentrant statement use is now supported

Many fixes to the layout managers in Wt 4. Now the widget gallery works correctly using the flexbox-based implementation.