bug fix

1. In dispersal, take into account the case where the disperser gets
lost across the boundary (when the boundary is permeable).
2. In immigration, add missing parentheses.