Enhancement: add trait getPointerBitmap to help precise scanning

This helps the precise GC (https://github.com/D-Programming-Language/druntime/pull/1022) to generate the required data without adding to the compile time.

Just move that into main please, no other dmd test uses `unittest`.