[DROOLS-150] Cannot declare an inner class type when the type is used in a rule