Implement isFile/isDirectory to ES5 getters

The enumerable attribute makes it possible to save the attribute in
IndexedDB.