Some fixes to previous commit

Shingle.canonize is private now