Shortcode.add() now accepts an object with methods as first parameter