[DROOLS-549] Queries in the default package are built twice
[DROOLS-547] Queries should check the type of input arguments
[DROOLS-555] Support both static and dynamic trait interfaces on the same object
[DROOLS-549] Move helper methods to ClassUtils