GROOVY-6372: @Immutable fails to recognize non immutable classes (fix runtime behavior)