Resize MDF input buffers if needed
If the input reading buffer was full, the MDF reading would report one event too many as read. Instead just resize the input buffers.
A segfault was encountered in the global event cut when reading larger number of events with MC information included. This fixes that segfault.