extend babel plugin OnResourceDuplicate for nested resources

OnResourceDuplicate:
proper TvInitialize for nested resources/resources with children.
Merge pull request #83 from manu37/master

extend babel plugin OnResourceDuplicate for nested resources