cuSTL Kernel 2D Container Support

Adds more support for kernels and cuda building blocks on 2D containers.

Minor flaws detected during the upgrade of the Phase Space plugin to support 2D simulations.

Btw: makros obfuscate error messages pretty hard (find the error in one of the ~15 generated lines).