Fix interface definition generation for typerefs in action return types and refactor RestLiAnnotationReader to make action validation easier to understand.

RB=167736
R=mtagle,kjin,slim,si-dev
A=mtagle