Modeling mechanical inhomogeneities in small populations of proliferating monolayers and spheroids