Use boundarySegmentIndex instead of boundaryId

boundaryId has been declared an 'experimental grid extension',
and cannot be used in the core modules.
Don't test the boundaryId method

It has been declared an experimental grid extension, and is not
visible without some preprocessor switch.

Fixes FS 1365