Fix some NoClassDefFoundError and some runtime errors by correcting the base class
GROOVY-5953 enable faster invocation path and fix contructor call path