factored out expr generation for captured vars
move wrap ref functions into a platform-specific helper object
use native array for c# in closures
add some comments
fix parametrized anon function capture
Merge pull request #3559 from nadako/3548_wrapref

[cs] use native arrays for wrapping captured variables