Avoid striping ids in local collections while bundling

We strip doc ids in collections during creation of bundle. Ids in remote docs are restored on client, but ids in local docs never restored. It makes data inconsistent between server and client.