The drones have to be 100% identical to be stackable. One different attribute and they won't stack anymore.
There also seems to be one temporary hidden attribute. I sometimes have bees which look exactly the same in the beealyzer, but won't stack. After relogging they suddenly stack.