The above is not quite complete, some things are missing or
underdocumented. The code that drives the prettyprinting is in the file
[[source:buff-ini.lua]] (which is called by [[source:buff-ini.mkiv]] and[[source:buff-ver.mkiv]] from the TeX side), in the ConTeXt distribution.
If you're missing anything, you'll probably find some answers there.
Don't forget to write down what you find on this page!