Allow move out of immutable static

Fixes #13233