Fix bad typo in the menu extesion gobject macros

Also make new() public since plugins may want to use this to provide an
extension mechanism for their own menus (e.g. the file browser context
menu)