bugfix: id_mapping returned only the last id of a given term. It now returns a list of IDs.