Expose PtrRep, other minor changes