Fix issue 11364 - Variant fails to compile with const(TypeInfo).
Added unit tests for issue 11364.