Fixes Closure namespace issues
Changes global array helper functions to use Arr class