serialize.h has a number of functions for accessing the data inside std::vectors, prepended with a warning to not use them in new code, as "with C++11 the language has built-in functionality for this and it's more readable to just use that". This PR removes these functions and their uses.
begin_ptr(X)→X.data()end_ptr(X)→(X.data() + X.size())