Remove type checks from File.basename, force to_str.
Added basename tests with Pathname.