fix variable names to allow for recursive calls

variables with same name as handler broke recursive calls.
add unit tests for AppleScript bundlet/bundler

tests `library()`, `utility()`, and `icon()` functions. Both proper usage and errors.