Check if field of array type is null first when get fields.
Fix read field of array type error.
Merge pull request #4 from node-modules/overwrite

Fix 2 input bugs