fixes, it is now possible to register instance instead of just class
Authored by: hovi6337 2011-03-04
Parent: [r5]
Child: [r7]