Improvements/fixes in formal object labeling

Improvements/fixes in formal object labeling:

* Fixed bugs in handling of formal object labeling (figure/table/example) in use cases with Parts.
* Handling to exclude "informal" figures and tables from count when labeling fig/table captions.
* No label generated for empty figure caption or table caption.