Introduce YangInstanceIdentifier.toOptimized()