various coverity fixes and cleanup/formatting

- fix uninitialized vars
- changed the caste hash in races to a list since caste id = index
- used the H_INFO enum where appropriate instead of int
- fixes health/body resource leaks
- additional checks for missing unit caste