make bool arithmetic consistently promote to Int.
fixes Gunnar's issue 5, part of #2980
Merge branch 'master' of github.com:JuliaLang/julia