Improve type.Table. Validate types. Remove semantic checks from parser. Groom code.

### Parse:
* Purge all semantic checks.
* Reuse `simple_expr` rules in patterns.

### Type:
* Rewrite of `Table`:
  * Don't create new `Type` objects; reuse AST nodes.
  * Store type info using only dictionaries; leverage `__eq__` and `__hash__` of the respective AST nodes. Use `smartdicts` for retrieval of keys.
  * Allow cross-referencing of user-defined types and constructors to ease type inference.
  * Split type processing into functions for readability.
  * Propagate errors via exceptions.
* Add type validation in separate class.
* Fix bad line info in error message.
* Beautify code.

### Type test:
* Add complete suite of unit tests for `type` module.
* Run tests with parser support.
* DRY using `parserDB` and the new API.
* Enable tests due on this merge.
* Replace `unittest` primitives with `sure` primitives.

### misc:
* Fix some `pylint` warnings.
This separation into functions is much better than what we used to have :+1: