fix basis.path.relative to work correctly with Array iterate methods