Fix planeWithPlaneIntersection and test unit
Merge pull request #650 from VictorLamoine/template_intersections

Regression fix for commit #646