Exposed unique_ptr serialization properly