Fixed warnings in BlockRegion, minor refactoring.