Minor Changes

Added some "missing" semicolons.
Moved some function invocations into a higher scope for scan operator.
Removed the use of `arguments[0]` in identity function.