extend babel plugin OnResourceDuplicate for nested resources

OnResourceDuplicate:
proper TvInitialize for nested resources/resources with children.