A number of various fixes and debugging

First partial success with running in ndnSIM (trust-related things are
not working yet, but we are so close...)