Fix and simplify par params parsing in get_containing_layout.

The previous version did not catch \align <alignment>.