Support for nested children and overflow in childrenSize

Continuation from pull-request #7  @kjarmicki kjarmicki