Use shared_ptr for CollectionInfo(Current) export.

This at the same time fixes an allocation bug with TRI_json_t*.
Remove debugging output.