Added `length` function (#1542). Added scalar value handling for `extract` and `length` (#1576).
Merge branch 'next'