Closes #87, only embed types into the JSON payload when it's an array (e.g. multiple items).