FIX #2976: fix buggy implementation of shadowing in GHC.getBindings