[boehm] Add toggleref support for boehm. This is line by line port of the sgen code, so keep them in sync.
[boehm] Integrate toggleref support into the runtime.