Implemented CfNamedInner to facilitate nesting resource elements

Implemented CfNamedInner to facilitate nesting resource elemtns
Unit-tests for CfNamedInner and CfBase