Fix support for class_names where a module name is included.

Restore the old Gem behaviour of using the table name to generate the ActsAsModule name. This is because the class name might containing modules and so ActsAsModuleName::ClassName does not work (ActsAsTableName would.)