Fixed regions unit tests

Fixes #145.

Added parameter to af_regions to allow selection of output array type.