Closure Tests and Metadata

- Expanded the suite of codegen tests for closures
- Added some metadata to closures to support a little bit of runtime introspection
Merge branch 'feature/closure-improvements'