Allow constant values to move. Fixes issue 1183.
Unify cross-module code motion with ReferenceCollectingCallback.
R=johnlenz