Reuse ForestReader implementation and fix to JSONReader

ForestReader: reuse the type coercion code
JSONReader: fix to close the json parser when complete is called on inner tables.