Change warning level to debug
Fix case when widget was defined with `zle -N widget`

Fixes #774
Add underscore to non-API functions and variables
Do the same for bash bindings
Merge branch 'shell-fixes' into develop