Handling other YAML types than objects

...also, unified the way composer aborts.

https://trello.com/c/16lRl7FW/1793-fix-matter-compiler