Add debug flag to deftype

Helps with learning which methods to customize.