Remove template-based registries

Although now some loops are duplicated, the overall codebase is reduced.
Also, the encapsulation of the registries was broken anyway.

The function arguments should be standardized to pointers of references
(preferably references, see
http://stackoverflow.com/questions/114180/pointer-vs-reference
) some time.