Make stuff get measured properly.

And added some logging to Layoutable to help diagnose this.