Cast instance method expr + other source generation fixes