Changed storage type of TArray to be shared_ptr, so that it can take a reference of TArray