function toList(x) {
	  if (Array.isArray(x)) {
	    return x;
	  }

	  return [x];
	}
Normalizes a list/tensor into a list.

If a tensor is passed, we return
a list of size 1 containing the tensor.

@param x target object to be normalized.