Extract PtrPlusNode class out of ObjectValidator

It will turn out to be useful in many other places.

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>