Checks that the internals of a goalp object are consistent.
validate_goalp(gp)
gp
A goalp object.
The unmodified input invisibly.