Effect of discreteness on heterogeneous flames: Propagation limits in regular and random particle arrays