Add support for options.locals.