ENH: Basic type checking.