If you actually enter a Reference number on a payment or receipt, it shows up where you’d like it:

The references you mentioned are those picked up to identify specific invoices. In one case, you have the reference for this specific payment form. In the other, you have references for other forms. So the program is consistent in where it places references for forms being displayed. It has to be, the forms are all generated by the same theme code.