fixed lambda RegisterGlobalFunction overload

also some more changes to .gitignore