Modify the plugin_helper to handle zero_to_one record types.

Currently it assumes that plugin-added record types will always be
arrays.  Allow it to be a single value (or nil) too.
Merge pull request #66 from hudmol/plugin-helper-single-record-fix

Modify the plugin_helper to handle zero_to_one record types.