GROOVY-6189: make CachedSAMClass handle null arguments as well
GROOVY-6189: adjust method selection for SAM
GROOVY-6189: adapt test for changed method selection process