BugFixes

Added destructors to kernels and properly implemented copy construction / assigment ( still not fixed events). Fixed bug in SetLocalMemoryArgs. Fixed bug in automatic memory types.