Fix xml parsing to avoid nil objects calling methods, fix recipe.as_json to show nested arrays as json as well