Improve mimic: revert const_set, improve shared tests
Merge branch 'mimic-rails'