Fix converting Either#to_json arrays