use a newer version of Reg.
Rely on dev version of Reg 0.8 to make buildout work again.
Document the function directive better.
Test the function directive a bit more, including classgeneric.