Fixed listMethodParams() to account for 'optional' being set, but having
a value of 0