Add class "has_entries" to table cells with objects

This automatically adds a <code>has_entries</code> class to table cells that yield objects.