Uniform solution of boundary layer problems exhibiting resonance