Fixing NULL error for ident()
Fixing various toString() issues