Fix both map implementations for Directory, they don't respect the docstring.
