Make sure order of elements in MaterialSet stays the same

Up until this commit, it was possible that the order of elements got
reversed each time the server was restarted.
Fix AIOBException in ReplacedBlocks

The fixed formatting caused the diff to look to large (sorry!), but the
actual change is at line 202/198.