minor fixes in debug passes code
make sure we set the pass to PTypeExpr even for lazy vars/functions in display mode