support custom refs in Repository.contents()