Ok, I see, I am actually passing it a string type(not a string literal) to the template so the first is chosen. I guess my isValuetype isn't working properly ;/