Prevent lambdas from crashing if given implicit generic parameters.

Fixes issues #599 and #641 (and possibly other generic-related issues)
Merge branch 'core/fix-generic-crashes' of github.com:Varriount/Nimrod into core/fix-generic-crashes