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

@jszakmeister just to be clear, @justinmk made that first example. I'm just a passive (but interested) observer to this "when does an array use memory" thing.