Implement scopesFromStack without underscore

Creating the array manually instead of combining _.pluck and _.compact
calls reduces the benchmark time spent in this method from ~65ms to ~5ms.
:lipstick: Rename i variable to lineNumber
Use for/in to iterate