Patch 1.8 fix

Fixed up the stuff to do with tech group/religion enough to get the game to load in. 

I am not yet sure whether it is full crash-less, but it has allowed me to start a game and I will be using this game to do a quick test for crashing.