Fixed a couple autogen errors for functions with default arguments.

Thanks to Nelson Sexton for the report!