Flow of colloidal solids and fluids through constrictions: dynamical density functional theory versus simulation