Merge "Change ReferenceQueue.add to append at end of the unenqueued list" into lmp-dev