On The Quantification Of Complexity And Diversity From Phenotypes To Ecosystems