JBMAR-160: fixes for JDK 8

https://issues.jboss.org/browse/JBMAR-160
The test fails with a river marshaller and river unmarshaller.