reviver & replacer [WIP]

Stolen from JSON.parse.