Fix a const preservation issue when using typedefs
Merge pull request #53 from jjensen/fix-const-typedefs

Fix a const preservation issue when using typedefs