PHP-769: Test suite function for generating collection names
MongoWriteBatch::__construct() type validation test

This also touches up the exception message and adds the invalid value to it.
Merge pull request #590