Correct data type in ObjectWithCreatedBy

Apparently this was a Timestamp before?

As its been working fine for months, it apparently doesn't actually matter, but it should be corrected anyways. There's also now a test to make sure that the property is of the correct type.