Use an alias for Array.prototype.slice
Don't slice the arguments if we don't need to.
Allow the cleanInput function to be optimised (stop using a slow-mode for-in loop).