Bug fixes and tests.

Fixed a bug where a digit regex was matching functions
and caused apply to never be called.

New test for anonymous function filtering.



Signed-off-by: James <james.a.forbes@gmail.com>