Fixes for the argument checking in the auto-generated user functions.
Authored by: bugman 2012-05-04
Parent: [r15990]
Child: [r15992]