Fix regressions of changes to composite nodes (list, figure).

Note: an image is used as a primitive node now.
Instead a figure is used to pack an image with an caption.

Moreover, the properties to referenced nodes return ids
not nodes. E.g., list.items gives an array of ids.
Fix regressions.
Merge branch 'nested_nodes' into nlm_converter