Add AllowedType support, templated constructor, fix const and reference for Variable, lightuserdata support, test for cppfunction. Changed constructor(State*) to factory function FromStack
Fix usage of FromMemberFunction in test