Revert "simplified attr checker".

Looks like there's a bug in logic of autocompletions of current TypeScript
master that uses properties from user-written object literal type instead of
properties of contextual type.