Upload groups via csv throws errors (Bug #1376503)

When the role 'course' is used - see notes in bug for testing

Also fixing the problem when updating groups via csv one could set
allowarchives = 1 even if allow submitpages = 0 which shouldn't be
allowed.

Change-Id: I9a2205835b09f73c9c881e8f707845e9032939ed
Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>
Merge "Upload groups via csv throws errors (Bug #1376503)"