Fix optional parameter issues for model methods exposed to appbase.