Replaced CHECK_AND_BAILOUT stuff in unaligned_read_ahead_interval with guarantees.
Gave scoped_malloc_t a void * constructor, replaced its existing reinterpret_casts with static_cast.
Renamed serializer_buffer_t to ser_buffer_t.
Made do_on_thread use std::forward.
Made serializer->malloc return a scoped_malloc_t<ser_buffer_t>.