Convert varheap's ref()s to ptr()s.  It's an array; ptr() is more natural.