Fix ls()

Also handle printing of zero-args functions