initial implementation of _.range
(cherry picked from commit d8cf99ba89e9d4dd6fc5cc1865737464cdede272)