BUG: Uninitialized struct caused occasional crash when displaying last message of the test report.
ADD: New array_compact_threshold() function to clear out empty elements of an array.