Fix bug in how expLmda and lmda are handled in var bound

Also there's a certain amount of debug shrapnel in this commit.