[JBMAR-169] : SerialMarshaller fails with Java 8

SerialMarshaller changed in order to run with Java 8.

Before when the State was FIELDS the method PutField() would throw an exception.