changed character constant types to enums
+ some typechecker work