Fixed the LDAP test of toLdapSerialized()

A data provider was bad which let `testToLdapSerialize()` fail. PHP's `serialize` seems to have changed since the test was lastly written/updated 2 years ago.