Corrected strange template issue with value class 

Closes #8