Bug fixes for the wait option in replicate.run
#315
Merged
wait option in replicate.run
#315