fixed some var_convert bugs, added type_get & type_cast + other minor changes