Supports js_pairs on function objects. See #337

I actually hadn't used tap until I wrote those tests for my last patch, so had no idea! I generally use nodeunit