sort namespaces + private functions by name
temporarily depend on @dtao's doctrine fork

This is to handle typeless params, until Constellation/doctrine#16 is
merged.
default to * for non-existent type expressions