Fix bind by function.

Bind must execute the function before performing the put operation, or
the result will be non-determinsitic based on which node is executes on,
and when.
Merge pull request #11 from SyncFree/feature/csm/bind-function

Fix bind by function.