qobj: constructor copies the type of a passed qobj

instead of trying to infer it.