code: private byte[] toBinary(Object val) {
  		if(val == NULL) {
  			return new byte[0];
  		} else {
  			if(val instanceof ObjWrapper) {
  				val = ((ObjWrapper)val).unwrap();
  			}
  			if(val instanceof ObjWrapper) {
  				val = ((ObjWrapper)val).unwrap();
  			}
  			return val.toString().getBytes(UTF8);
  		}
  	}
docs: TODO review with zen 2 marshalling tools