MongoWriteBatch::__construct() type validation test

This also touches up the exception message and adds the invalid value to it.