Improved Shopify error handling

Added ability to handle when Shopify errors are returned as arrays.