enhance <#if> to handle type and value