Fix raw value with key bug. Code clean-up.
Fix raw value with key bug. Code clean-up.

vega/datalib,mathisonian/datalib,vega/datalib,jonasagx/datalib,sandbox/datalib,jonasagx/datalib,freeman-lab/datalib,freeman-lab/datalib,sandbox/datalib,mathisonian/datalib