Fixed Vector.sort not returning the original Vector on the lua stack

... resulting in a crash, added a unit test for the UNIQUESORT case of this happening.