Fixing data template generator to process type refs specified as array items.

Moving the typref processing logic a layer above to cover all unnameds.

Moved the type ref check into map and array modules explicitly.

Added Changelog

RB=196204
R=jbetz,slim,si-dev
A=jbetz