Fixed PHP-747: Improve numeric check for write concern option.
Fixed test for < PHP 5.2.
Merged pull request #463