Update the testing scripts to allow for new space calculations for space for bitmaps. Add a test script for adding devices to linear arrays.
The bitmap offset is a signed 32bit number, so casting to (long) isn't sufficient. We must cast to (int32_t).