Include memory in registration.hpp

This was broken, but travis wasn't picking it up.