fix debug message

convert enum ctype to number for proper debug printout

Needed to fix https://github.com/koreader/koreader/issues/1098