ReplicatedPG: use the ReplicatedPGRef typedef

Signed-off-by: Samuel Just <sam.just@inktank.com>
PG: use PGRef typdef in PG.h

Signed-off-by: Samuel Just <sam.just@inktank.com>
adjust typedef location