[feature] A more Scala like approach to ArrayWritable