Fixes + generator tests

I ported one of generator tests from https://github.com/mozilla/source-map/blob/master/test/source-map/test-source-map-generator.js

Currently, file and version checks are passed, and the rest are not. We need to investigate