add some warnings, apply patch from promethe42 to fix some const issues
remove one of the new warnings, caused more spurious warnings than was useful, and fix the rest of the warnings.
add unsigned integer and boolean support to the magic tuple unwrapping code. thanks to promethe42 for the original patch.