Fix collectd types.db parsing

Fixes a bug in collectd's types.db file parsing causing the types
featuring more than one DS to be incorrectly looked up when processing
collectd packets.