Adapt to corresponding SG change to make SGMaterialLib be ref-counted, and have the 'reload-materials' command notify the tile-manager of this, so it can update the options struct it passes to new tiles.