Fix a couple minor bugs in Reference expressions