util.auxiliary: add recursive function to remove empty tables.
util.pubsub: sort out subscriptions sanitization code. (Fixes #184)