A bunch of bugfixes detected by clone/equals automated tests

This is very useful :)
Will keep people from registering parameters wrong or not initialising them. Also catches wrong get_name() returns

There are some issues though with creating empty class instances. 
@sonney2k
@vigsterkr