Remove dead, bogus code in canonicalType

Closes #270