autocheck and observes attributes support.

Hi, I would send a pull request.
That includes menuitem.autocheck and menuitem.observes attributes support.
Please merge it if you want.