Enable binding of const variables

Before this change, it was not possible to bind a <const int> as a variable on a class or module, it is now possible.

I'm open to API suggestions and better ways of specializing addVariable as I haven't done too much template meta programming before.