simpleSerializer = function(functionUid, args) {
  const context = [functionUid];
  for (let i = args.length - 1; i >= 0; --i) {
    context.push(typeof args[i], args[i]);
  }
  return context.join('\x0B');
}
Simple and fast argument serializer function for goog.memoize.
Supports string, number, boolean, null and undefined arguments. Doesn't
support \x0B characters in the strings.
@param {number} functionUid Unique identifier of the function whose result
    is cached.
@param {!IArrayLike<?>} args The arguments that the function to memoize is
    called with. Note: it is an array-like object, because it supports
    indexing and has the length property.
@return {string} The list of arguments with type information concatenated
    with the functionUid argument, serialized as \x0B-separated string.