make log_repr handle non-instances as objects