Move local expressions to a separate module.

randn/rand are not referentially transparent, and so can't be used
with map fusion; turn them into shuffles to prevent this.