Added overlap parameter to signal generator

Coding-style fixes in test_roi.py
Added masking functions for regions.

These functions are very similar to mask/unmask functions, they
just handle labeled regions properly.