Issue #1243244 by xjm: Re-enable and re-select disallowed defaults on submission to prevent validation issues for required, multiple-value fields.
by xjm: Rename _taxonomy_access_format_grant_record() to _taxonomy_access_format_node_access_record() for clarity.
by xjm: Reduce memory overhead of affected nodes cache (do not cache duplicates and stop caching if there are more nodes than the max threshold).
by xjm: Checking for empty array with single ID returns when it is zero (global default), which breaks default grant updates.
Issue #1213792 by xjm: Accept either single values or arrays in multiple-value API, and remove single-value wrappers.