Refactor constructor generation in BaseClassStep
Refactor constructor generation in BaseClassStep

The previous code failed on Mono 5 due to a Mono bug.
See https://github.com/mono/mono/issues/6560

eatdrinksleepcode/casper,eatdrinksleepcode/casper