Fix output of serialized array when no location category is set.