Support carried objects in custom states
If state:set_previous_carried_object_behavior("keep")
was called, the carried object should persist during the custom state.
If state:set_previous_carried_object_behavior("keep")
was called, the carried object should persist during the custom state.