Fix a cast error and check UUID size.
Deprecate and remove NEWZERO macro:

NEWZERO uses calloc on pointers that are expected to be deleted with delete...
Also, it makes constructor behavior inconsistent with normal C++ new.