Don't crash if debug logging can't list object attributes.
Remove unused call to lib.getSlotList().
Merge pull request #19 from fredrikt/master

two more fixes