[WIP/RFC] Add unit tests for buffer.c and fileio.c

I guess I'm fine with that if we feel confident that option (3) is correct. 

> I see absolutely no reason to not have it as a static array because that's what it is. 

Well, we are then turning around and telling `gen_expand_wildcards` that it isn't :)