Fixed canonizer.c passing NULL to various functions.