All memory leaks are fixed. TypeSerializer.h base was not used, so deleted. All code reformatted.