Merge pull request #439 from OkayX6/eliminate-record-gen-dup-code

Deduplicate record stub generation logic
Prepare union type case generator
tryFindMatchExpression
tryGetUnionTypeDefinitionFromPos
Generator POC (solution not compilable yet)
Add comment