Re-enable doctest for analyses/transformations/optimizations

doctest is not recursive...
Allow call to ``complex`` without parameters

complex() -> 0j