Changed SerialPacket to use static memory

Should prevent any bugs occurring due to fragmentation following
repeated allocation and deallocation of memory. Also means memory leaks
should no longer be a threat.