Fix memcpy SegFault and GridControllerAccess

memcpy bytesToCopy argument was changed to sizeof(destination), which is always safe.