Fix undefined index
Set contributions types label to 100 chars as well as translation fields; fixes #800
Colmun names prefixed twice; fixes #824
Fix attachemnts mimetype detection, fix an undefined index; refs #823