improve enum write in hessian 2.0

enum list decode and encode.