feat(runtime): add memoization to genericType()
Support glob patterns in file names while compiling with --out