Supports js_pairs on function objects. See #337
Adds test for #337.
Requires colony-compiler >0.6.18.
Merge #413 r=@kevinmehall: Supports js_pairs on function objects. See #337