perf($parse): create new Function to call statements without iterating

When having multiple statements, instead of iterating through the statements
array, a new function is created. This function sequentially calls all the statements
which is faster due to not having to do the array lookup and it also allows the VM
to make optimizations like inlining.

http://jsperf.com/compile-function-list-call