Fix #3207: add has_side_effects = True for lots of primops