Malte,
Am I mistaken or are you just advocating generating the cr_items.name that includes the linked object id?
Is that all there is to it?
We do have an attachments package that can do this. I am not sure its the best user interface for this, and it relies on file-storage due to a historical requirement, so I don't know if its the best bet either.
Since bugtracker already uses the content repository it should be simple to store a file int eh CR and associate it with a bug. The cr_item_rels table and associated APIs should work.