Value: fix swap() method and add tests

Conflicts:
	lib/__tests__/Value-test.js