Add basic serialization of arrays
Fixed DRY violation
Merge pull request #3 from CSNW/serialize-arrays

Add basic serialization of arrays