Update ProjectElement.java

Move serialization to ProjectElement.