Custom GameState isn't used in Shipping build

Since posting this question I’ve also found that the PlayerController and PlayerState overrides for my GameMode aren’t being used either. I have a base game mode that all my other game modes inherit from and I originally had the defaults changed for the inherited ones but not the base. I found if I change them for the base game mode then the PlayerController and PlayerState classes are created correctly in shipping builds, though the GameState still isn’t.