various bugfixes in gdist class
various bugfixes in gdist class

dudalev/hyperopt,CVML/hyperopt,jaberg/hyperopt,mathkann/hyperopt,dallascard/hyperopt,allansp84/hyperopt,w1kke/hyperopt,beni55/hyperopt,nicholas-leonard/hyperopt,466152112/hyperopt