Adding ptr() to cereal::allocate

Also renamed things to avoid shadowing
See #46 for example that inspired ptr()