lua: add optional path filter to objects() method