Swap ringbuffer around the right way
get_tail_ref was also mis-named, should be get_head_ref
Merge branch 'fix/Ringbuffer' into edge