Implement a range() builtin function.

This emulates the python's builtin range() to create an array of ints.