Add support for subcomponents

See #4

It is unclear whether properties after subcomponents are allowed. I've
never seen a file like that.