Add object filter to union procedure
Fix errors in split_by_polygon