write: fix AMF0 Boolean type on node <= v0.8.x