better support for sheet functions.... more refactoring after i have written tests for named range. Inclueds a fix for bug 9632