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

...suprisingly, in vanilla vim `IObuff` is also dynamically allocated (but not `msg_buf`). Who changed it? The plot thickens...