[NCuboid] Added per-group restrictions on Regions
+ some other minor fixes and refactors