GROOVY-7222: Optimize constant initialization in statically compiled code