std: add table.len and fix buggy stdlib v40 functional.bind.

* lib/specl/std.lua (std.functional.bind): Overwrite stdlib v40's
broken functional.bind with a simplified v41-like implementation.
(std.table.len): Implement this future stdlib API.