Fixed various memory leaks
Renamed zpipes_msg_dump -> _print
Cosmetic fixes