makeMeAnObject(thing, property) {
    if (!property) property = "payload";
    if (typeof property !== "string") {
      log("warn", "uibuilder:makeMeAnObject", "WARNING: property parameter must be a string and not: ".concat(typeof property))();
      property = "payload";
    }
    let out = {};
    if (thing !== null && thing.constructor.name === "Object") {
      out = thing;
    } else if (thing !== null) {
      out[property] = thing;
    }
    return out;
  }
Makes a null or non-object into an object. If thing is already an object.
If not null, moves "thing" to {payload:thing}
@param {*} thing Thing to check
@param {string} [property] property that "thing" is moved to if not null and not an object. Default='payload'
@returns {!object} _