type check table accesses

test plan: make && node parsetest.js