save and restore collision types and handlers