Make vmi_step_mem_event universal so it can be called with any type of event and not just from callbacks