stamp: Always add the IDs to the internal ID list

Bug reported by João Gandara. Only the generic stamper extended the internal
IDs list. The support was missing from the LaTeX stamp command.