Meta-data: Adopted tests to rename of materialized tables to class names. Added internal error for token not found. Fixed creation of type defs for materialized table through reflection.