introspection: new helpers to access array/struct

WARNING: this changes dt_introspection_access_array()
TODO: support unions
Merge pull request #511 from LebedevRI/histogram-refactoring

Histogram refactoring
Deflicker: mode switching: gui complete
DEFLICKER_MODE_SOURCEFILE is working?
DEFLICKER_MODE_AUTOMATIC is working?