Merge pull request #17 from apache/serialize_returns_vector

use new version that returns vector from serialize