Update Menu.java

Move serialization to ProjectElement.