Fix bug with equals method in Submission

Fix issue where calling this method with another Submission object will result in a java.lang.ClassCastException.