Remove some implicit conversion operators
Shut up some warnings

Also some "consistency fixes"
Get rid of custom smart pointer implementation
Remove one useless header
Some more consistency fixes, some default parameters removed etc.