Homology and a generative theory of biological form