[FIX] Making BED coordinates 0-based.

Often, text-based formats use 1-based formats but BED uses 0-based formats.

Fixes #425. This will most probably create a rippling effect in tests and apps.