Replace asserts in Generic.Mutable