fixes for Glass Razor Templates issue 28