fix NPE
(cherry-picked from 0ccac01)
several minor fixes
(cherry-picked from 6bd7f44)
Replace Ineger and String Keys in StatisticsDatabase with ObervationYear, ParameterName and GeometryID
(cherry-picked from d4e0f22)
fixed usage of valid pixel expression
(cherry-picked from 50c9816)