Changed set_nth to also accept Rvalue references.