Make line indices configurable

Allow the user to configure whether line indices are zero-based or one-based, like SpiderMonkey's Reflect.parse.