Adds functionality for set-nth.

Issue #578 
Ah yeas you're correct.