Fixed reflinks in Document.switch_*