Fixed derived types not being detected when solving dependencies