MDL-52873 forms: Generate unique id attributes for modgrade elements