Xenoarch Bug Fixes

Ignore the Merge pull, don't know what that's there.

Xenoarch bugfixes and tweaks. Changelog file included. Cleaned up a bunch of outright wrong code (broken batteries and analyzers) and tweaked archaic secondary effect identification. 
Hint: when you have to explain the crappy and complex control flow it's a good time to rewrite the proc.
Might as well get it done if you're there already.