Add support for address and undefined sanitizers in the CI
This introduces two additional runs in the CI to add address and undefined sanitizer to catch errors on run time in addition to compile time. It applies one patch from !139 (merged) as both static analyzer and sanitizers identified the issue.
Edited by Nikos Mavrogiannopoulos