Cleaned up CPPStandaloneDevice.build and partial support for group
variable initialisations