[functions] add Function.bind support