I'll be sure to look into the corrupt church one either way! Mostly because that section of the game was added a yearish ago, and hasn't been updated since!Alright so on the 'foreach' issue, I seem to be able to replicate it by going to a dark church ritual, then upon waking the next day that fires.
For now though I think you should ignor this one, as it may be my fault.
Also, It looks like the version updating script fires every time I enter the Female Dorms.
And the version updater had a variable input wrong, but all it's doing is setting max mana cap back to 200(since it had broken and potentially people had max mana cap drained, rather than base max mana which can be trained back up easily enough) so other than being annoying, it's not really hurting anything.
I'll try to throw together a quick patch for it tonight fixing that, not even going to change the version numbers on it and will just upload it it here with a little note.