A geometric classification of inhomogeneities in continua with dislocations