Store isDir in the stat data

This should make some fs functions significantly faster, but we'd need to remove the transitioning code to actually enable the speed-up.