Added default value to 'bool' and some comments.
Fix garbage value in 'maxtype'. Use 'calloc'.
Merge branch 'melt-multiple' into 1.9.8