Fix scala 2.9 compilation
Use separate template for double rendering test
Merge pull request #4 from pvlugter/errors

Fix compile and test errors