Fix spec coverage to match current threshold

* All the uncovered code are private methods that will likely be
  used in the future, or removed if nothing ends up using them. I
  presume some of them are from unparser, since this code is very
  similar in design.
Add missing YARD docs

* Fix some formatting around the docs
Change TYPES to be consistent and use deep freeze consistently
Update metrics thresholds