[DROOLS-265] Fix trait map serialization for java 7 compatibility