Additional utility functions to retrieve reinforcement information

It also should fix the invulnerable gates. I haven't heard of any side-effects of this. The utility functions are needed for MrTwiggy's ore miner. Ttk2 already has a jar for these.