head reattachment fixes
Merge remote-tracking branch 'upstream/master' into bs12_fixes
Fixed runtime when reattaching heads without minds
Merge pull request #92 from alex-gh/bs12_fixes

Head reattachment message and runtime fixes.