Updated to work with new SALib morris lib

Also added extra check in testprogram to make sure the number of
arguments for the passed in function handle is correct.