Fixes #2853: ActiveRecord did not handle resource-typed columns well