added typeof to export (in special.py)

also added complex cad for typeof_pyval