Fix Factory#union.
Add production rule for grammar's union_type.
Allow system, attribute and heading as grammar start rules.
Add production rule for grammar's attribute.
Fix Attribute and Heading equality.
Fix factory and test it more deeply (attribute, heading)
Add production rule for grammar's heading.
Add production rules for grammar's rel types.