Test debug mode to fix a nd_range constructor issue around offset

The default 0 offset was always of dimension 3...
Use default constructor offset which is initialized to 0 anyway.
Add "id" constructor from its implementation to have "item" methods working