properly copy scalars from device
properly copy scalars from device

This part was missing from 1fcf424 (Fix code generation, when scalars
are used as zero dimensional arrays, Sun Aug 7 23:55:24 2011 +0100).

Signed-off-by: Sven Verdoolaege <e5350bbed4977f5eb8ae1dc6abd9ae59d21ace75@kotnet.org>

nicolasvasilache/ppcg,Meinersbur/ppcg,nicolasvasilache/ppcg,Meinersbur/ppcg