ghci: Correct free variable calculation in StgToByteCode

Closed Matthew Pickering requested to merge wip/t20009 into master

cc @luite

Merge request reports