Made the partition bit width configurable and refactored id assignment to make it more explicit. Fixing tests (1).
Made the partition bit width configurable and refactored id assignment to make it more explicit. Fixing tests (2).
Made the partition bit width configurable and refactored id assignment to make it more explicit. Fixing tests (3).
Made the partition bit width configurable and refactored id assignment to make it more explicit. Fixing tests (4).