fix gcc warnings
Introduce explicit operator bool in PtrTypes