Make sure zero length reads work in NODEFS

Fixes #2266
Empty ungotten chars for all filesystems when llseeking
Perform fgetc/ungetc test on both MEMFS and NODEFS
Merge pull request #2945 from aidanhs/aphs-ungetc-nodefs-fixes

Fix ungetc on nodefs