Adds functionality for set-nth.

Issue #578 
"Should l->length() + n->value() be l->length() - n->value()?"

Ah yeah you're right. But I think it's actually 

    l->length() - n->value() + 1 

because n counts from one while index should start from zero