check type of BaseItenm if an GroupItem (e.g. TemperatureAverage) was stored to database. Needed for correct conversion of Datatypes.
Merge remote-tracking branch 'openhab/master' into mysql-bugfix-activeGroups
Merge pull request #1140 from jo-we/mysql-bugfix-activeGroups

MySQL: fix GroupItem handling