Fixed regions unit tests

* Tests failing on Windows due to wronge type of input array
* Added parameter to af_regions to allow selection of output array type
Merge pull request #147 from pentschev/regions_tests_fix

Fixed regions unit tests