lib/core/object/io/parser: check for unexpected termination on scope close; tidy.
lib/core/object/io/parser: check for unexpected termination on scope close; tidy.

komiga/quanta,komiga/quanta,komiga/quanta