Generate only required lambda symbols

Fixes js/#12