Fixed several bugs and reworked analysis_HINT, as well as test setups for HINT related tests.