[bugfix][SimpleGridFunction] Store entity object to avoid dangling reference.
This occurs when bind is called with intersection.inside() or intersection.outside().
This occurs when bind is called with intersection.inside() or intersection.outside().