Initialise child components in data order

Test and change of initChildren to `.shift()` instead of `.pop()`. Fixes #589.