Agda-2.6.1: A dependently typed functional programming language and proof assistant

Insert unsafeCoerce (in the form of TCoerce) everywhere it's needed in the right-hand side of a definition.