Modify the plugin_helper to handle zero_to_one record types.

Hi Chris,

Just another little fix I found we needed when developing plugins.  This plugin helper code was assuming that all added subrecords would be one-to-many (and therefore an array), but we want to support zero_or_one records as well.

Thanks,
Mark