[DROOLS-363] avoid to redefine classes for unchanged declared types