Add improved version of the dir() builtin.