Endoreplication and polyploidy: insights into development and disease