Fixed HIPAcc code and scalar references for test benches "Normalized gradient" and "Topological erosion"