add type checking macros
change type in zdcontext
add allocating and calling macros