Fix warnings and make tags a proper syntax tree.