encoder.js :: implement encodeBool() & tests