[Git][ghc/ghc][wip/amg/castz] Fumble around trying to fix optimisation bugs