GROOVY-10356, GROOVY-10623: STC: inferred variable type following `null`