Ensure that namespaced Entities get a correctly generated table.

This ensures that when using a namespaced Entity class, the table names are created using underscores instead of the default activesupport inflector behaviour, (slashes).