Fix bug with array to json serialization in ruby client

 - fixes #118