improve elevation profile accuracy

  - round outwards when computing raster box instead of adding margin
    because it is independent of current raster resolution
  - compute actual position of raster box after rounding to avoid
    coordinates being shifted
  - disable elevation profile caching when in DEBUG mode