add implementation of get_name/val/... for new types
fix cast in some function of getting name, val, etc
add stubs for resolving type