Fix PostgreSQL TIMESTAMP WITH TIME ZONE to return ActiveSupport::Time

In an AR model a timestamptz attribute would return a ruby string and AR
tests did not check for any type casting.  Previous tests would pass
only because an assert_equal was being used on a Time.utc object, which
will parse the right side of the eq to a valid Time instance for
comparision.

switch to test instance of Time instead of ActiveSupport::TimeWithZone
Merge pull request #9431 from troyk/patch-2

Fix PostgreSQL TIMESTAMP WITH TIME ZONE to return ActiveSupport::Time
Remove hard coded references to Active Record in railties