Rename normalize context to local_context. Create context. Fix bug in name.cpp

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
Add type checker

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>