Fix examples for primitives and complex