Faster tag rendering
Faster singleton detection
More tag writing tweaks
Restructure logic and simplify
Merge pull request #410 from wch/faster-tags-2

Faster tags