Fix transforming mutable types creating infinate loops (SCALA-115)