fixes #2588 - table name used for localization is being determined correctly now for sti classes.

 works for non-AR classes too now.