fix bugs in constantize of model class around inflection.