Made codexlayout handle nobreak chains a little better