Fixed a bug introduced by commit bfe38be9 in ptx backend. declarations were not being copied to kernel module. Fixed those