fix assorted errors in FO creation, mostly around table rendering and margins