Improvements to SoftwareSwitch, syn_mem_test

@colin-scott please review.