Update ModelViewController.java

Move serialization to ProjectElement.