Only allow restriction of fourtechs when they make sense.

Closes #957.