fixes to custom group create including (scary) adding the drupal_json_decode to support d6 version of migrate module