Bugfix, waytemp.nd is not a struct if Nnd == 1, resulting in an error:
??? Cell contents reference from a non-cell array object.

Error in ==> parse_osm>parse_way at 78
ndtemp(1, j) = str2double(waytemp.nd{j}.Attributes.ref);
etc..