GpuCorrMM_gradWeights: fixed shape inference
GpuCorrMM: more elaborate error message in case of shape inconsistency
added tests for GpuCorrMM_gradInputs and GpuCorrMM_gradWeights