Add subclass check on mutable transformer