Rework results to be returned as id strings cf. objects

This should fix issues where only the first out of a group
are found.