Improve dumping of key ducktraps and add missing error returns

This lib needs unit specs and mutation coveage ;)