This adds a character location in addition to the row and column location information.
Adds character position to getLocation
Location data now includes a `character` position, which is
the position (in terms of characters) in the stream processed
Fixes bug where scripts were in the wrong location.
Note: this fix is sorta hackey. The root cause lies elsewhere.
Actually, this is to be merged in V1.x branch, not master.
Force flush to make sure elements are written to handler