* fix crash when race mask was resolved to faction * fix id buffer bleeding from resolving class mask into resolving race mask and vice versa * fixes #472