changes pointers of attributerecord and featurenodes to unique pointers