fix writeObject 2.0, now Enum as a normal java Object
Merge pull request #16 from node-modules/write-object-ref-fix

fix writeObject 2.0, now Enum as a normal java Object