Plastic flow in a composite: a comparison of nonlocal continuum and discrete dislocation predictions