use ?debug parameter more flexible

Before you could not specify '?debug=true', '?debug=1',
but only add debug with no assignment ('?debug')

This fixes so that anything is accepted as param. (also ?debug=false, though)