Added support for personalization vector for dangling nodes

Hi,
Here is my attempt at adding the support for personalization vectors for dangling nodes. The default behaviour is implemented via R default function flags, although there is also some #ifdef code in prpack.cpp to provide a copy of the reset vector if the resetdangling vector is absent.

Testing is not yet thorough, but everything compiles and installs, checks pass and documentation updated.

Thanks for your help, and I hope this patch makes life easier for you.
Do we need this variable here? We could simply pass a null value in the actual function call later on.