Added support for attribute groups

AlignStack received a special treatment even though it's probably just
an example of a new syntax, will update if necessary.