function addGroup(groups, initialValues) {
    groups.push(Object.assign(
        { parallel: false, patterns: [] },
        initialValues || {}
    ))
}
Adds a new group into a given list.

@param {object[]} groups - A group list to add.
@param {object} initialValues - A key-value map for the default of new value.
@returns {void}