Added detection of complex types to doc strings