Normalize callback arguments. Same as shell.