Niels support lambda parse

This addresses the use case described in #156 and should be fully backwards compatible.

Tested against MRI 1.8.7-p374, 1.9.2-p320, 1.9.3-p448, 2.0.0-p247 and jruby-1.7.4.