generator: some types and tweaks
validating lib generated via CLI
random extra args should throw
must explicitly provide an output directory
DRY'd up some of the tmp dir logic
test: better validating of generated library