make clang happy about std::refs on dereferenced std::unique_ptrs
so much for portability