Allow global override of default STI inheritance column

This change fixes a bug by which 3.2-STABLE users can't globally override the default STI inheritance column with `ActiveRecord::Base.inheritance_column = 'some_column'`. 3.2-STABLE users are forced to use a deprecated method or monkey patch it otherwise.

Add test case for #10393

Fix warning `instance variable @inheritance_column not initialized`