Minor memory improvement

By SomeTroglodyte:
- Little Promotion UX improvements
- Modding: Better unique-to-object compliance testing

By SeventhM:
- Fix issues from gaining free beliefs
- Fix issues when transferring capitals
- Avoid built buildings