[pmc2c] fix optional arg handling by setting defaults

if the optional arg is not provided initialize with a default value.
All tests pass