Implemented getupval. Fixed bug in basestack pointer passing to closure_create.