Merge pull request #3350 from RosettaCommons/roccomoretti/fix_san_tests Fixes for some of the ubsan/addsan/valgrind errors.