Init/Free memory for types
Fixed leaks in bnSum/bnDiff
Fixed printToken