Dualism, duality and the complexity of economic institutions