Class.js: Allow destruct hooks (needed for my next Pull)