Fix containers applying layout flags to children.

Specifically, this fixes the FLOATING flag on a container.