refactor($parse): clean up evaled function

refactor($parse): clean up evaled function

Remove unused variables from the created function.
Use == null instead of (=== null || === undefined)
Don't wrap the evaled function in a closure when not unwrapping promises.
This change also brings a slight performance improvement: http://jsperf.com/optimizing-parse