Finished refactoring IsLayoutContainer, IsContainer so that it's saved as a member rather than being a function.