Fix #463 - account for step in xport json

Final element check changed from end to end-step
Merge pull request #464 from aelse/issue463-fix-xport-json

Fix #463 - account for step in xport json