type checking object types

test plan: make && node parsetest.js