Fix test_type
Fix const/non-const problem in concatenate code.