Migrating encode_with and set_inverse_instance

Migrating encode_with and set_inverse_instance from ActiveRecord's reflection class

Ping @obrie, @StabbyCutyou, @akasper