Correct toString on functions
[toplevel] Fix method namespaces in several toplevel classes
[tests] Add tests for method namespaces

Several of these testcases will fail with "Expected: ReferenceError,
actual: undefined" because the method resolver does not yet throw the
correct exception.
[RegExp] prototype toString
[ASObject] Handle Template_base in toDebugString()
[ASObject] Implement toLocaleString according to EMCA 262
[Array] Implement toLocaleString