fix bugs in constantize of model class around inflection.

Fix bug in constantize of model class around inflection, which is occurred in acts_as_tenant method with the older version of tails.