Major upgrade to singletons. See CHANGES.
Compiles with both 7.6.3 and HEAD. Still needs documentation.