add length assetions to the ObjectAsserter