Fixed code for wrapping optional arguments (V8 doesn't implement write back semantics of 'arguments' array).