simple set of conditionals faster for `sign`, esp. in JavaScript
don't need bytes-count anymore
byte-compare is a reasonable macro
fix byte comparisons under JDK 8