Add spec for bug #8436.

__dir__ with top level binding should return the directory name (#217).