Bug 976654 - Rename `options.id` to `options.name` and generate unique `id`.