Fix a memory leak issue, where static instances of BaseTypeSignature
for the primitive types would inadvertently hold a reference to the ScanResult
of the most recent scan, even after the ScanResult
was closed, preventing garbage collection from collecting the ScanResult
and its linked objects. (#419, thanks to @protogene for reporting.)