Fixed templating and lvalue reference
Merge pull request #33 from zackthehuman/master

Fixed template specialization and rvalue reference passing