Fixed put method in swift module

A logic error in this module prevented salt from being able to use the swift module to put an object inside a swift container.

The comments for the put function suggest that this change is the intended behavior.