There really should be a check for if a hero can actually move through those gates or not (i.e., are they rem or calico / do they have shrink items), that makes the unstick hero button send you outside of that zone. For now your best option when absolutely stuck is to press F7, and type " killme " in the console to force a respawn.