make QueryContext and QueryFilter serializable otherwise they break ejb remote support