Move hasBoundaryIntersections to GridView

Currently, having intersections with the boundary is a property of an entity. On the other hand, handling intersections between neighboring entities or between entities and the boundary has be delegated to the GridView. This leads to the following type of code snipped: