Allow mutable slices in statics.

Fixes #11411