Start converting to objects instead of arrays.

Support language extension on tags.
Finished converting to objects.