Cleanup SmartRef (in)equality comparisons
- move definition back into class as gcc can deal with it just fine now
- add explicit comparison to nullptr_t so that comparison to int can be deprecated
- add explicit conversion to bool to give SmartRef the same semantics as a pointer