DB/SAI: Fix for quest 12449 & 12417 from MitchesD.
Closes #11373
Core/Misc: Fix warnings

Fix warnings appearing with -Wstrict-aliasing flag.