Set regs to stack on return of const_get calls before use

I believe this fixes issue #1537. The problem looks like it happens when the stack grows leaving the local variable regs pointing to the old stack instead of the new one once the call to the underlying const_get unwinds.