Implement support for lambdas

refs #8030