fixed setProblemType

fixed a bug causing wrong problem type to be set in train-test beta
functions.
fixed traintest_demo to use correct name for kernel (behaviour
unchanged).