The prelude compiles without undefined behaviour caught by -fsanitize=undefined Plugged some memory leaks