Fixed reference serialize bug of hprose for ruby.