Check typeof Closes #2811.