* Add Chain.network_id * Bump aebytecode version
This includes a massive refactoring of the type checker, getting rid of most of the ets tables and keeping a proper environment.