GROOVY-6776: ensure method cannot be called with null argument if target parameter is primitive