Fix struct slice serialization for EC2 and Query.

Closes #22.