Updated OrdinalConstant __format__ and __repr__.

The methods now handle the case where OrdinalConstant is empty initialized.