Implement objtrash() and generation number increasing; move initialization to a separate subroutine