FPT stops iteration when CONTAINS is the realtion. ShapeFilter's bounding box and integer based calculations are cached. Code reformatting