move get_type() from stack_value to any_local