Add CopyToArray method for IPalette.

By allowing a palette to be copied to an array, a speedup can be gained in HardwarePalette since palettes can be block copied using native magic rather than having to copy them item by item. We transpose the buffer in HardwarePalette in order to allow a contiguous block copy into this buffer, transposing again in the shader to keep everything correct.
Make FrozenActorsInBox a streaming enumerable.

Following the same layout as ActorsInBox, this streams the enumerable internally making it cheaper to call if only part of it is required, and also avoids building an intermediate list.
Move Upgrades and Prerequisites
Merge pull request #7091 from RoosterDragon/buffer-copy-palettes

Block copy palettes
Merge pull request #7093 from RoosterDragon/frozen-stream

Make FrozenActorsInBox a streaming enumerable.
Merge pull request #7106 from penev92/bleed_moveFiles

Move Upgrades and Prerequisites from Mods.RA to Mods.Common
Splits AttackMove into trait and activity.
Moves them to subfolders/namespaces accordingly.