Update ProjectElement.java

Fixes for serialization.