Add recursive platform/nodetype initilisation

* Recursively initialises platform/nodeType attributes for child nodes if
set in parent