Assembles a ConfigObject from a parameter list, accepting multiple notations:
Each entry in the list can be
[key, value]
key, value
. e.g. toConfigObject('a', 1, {b: 2, d: 4}, ['c', 3])
will result in an object looking like {a: 1, b: 2, c: 3, d: 4}
The keys will always be strings, and the values will be undefined, number or string (with any other value having toString() called on it).
This function should generally not be called directly. It is primarily meant as an internal helper function for methods which for some reason has several complicated overload signatures.
Use toConfigObject