Corrected role assignment. Set again local roles according to all field configurations in case a removed role after a change was removed but is yet necessary for other field.
Added tests to check it.