add failing test for mixed signed input
use modulus of 256 not writeInt8
move Buffer.isBuffer out of loop
Merge pull request #31 from dcousens/master

Fix of #30