Fix parsing of memory layout descriptors, which was inconsistent between spatial_layout_string_to_tuple and layout_string_to_tuple.
spatial_layout_string_to_tuple
layout_string_to_tuple