Changed regexp to support nesting sequences of objects in sequences of objects.