function getUid(item) {
    if (item.hasOwnProperty('uid')) return item.uid;
    return (item.uid = createUid());
  }
Returns a unique ID for the item. This mutates the item so it needs to be
an object
@param {!Object} item The item to get the unique ID for.
@return {number} The unique ID for the item.