fix possible NPE for pojo property get
GROOVY-5351: change generation of closure names to fix issues with Class#getSimpleName()