Add support for BasicObjects to `ls` [Fixes #984]