fix codec json namespace, table factory, asNumeric
fix value map and query api