Fixed SET command serialization

If EX was set, SET would discard the NX flag. However, 
`SET key value NX EX duration` is a valid command.