Added check for valid length to typedef constructors.
drwxr-xr-x - code-generator
drwxr-xr-x - model
drwxr-xr-x - yang