Size effects and length scales in gradient plasticity and dislocation dynamics