DotRocket: mark wrapper-functions as static
DotRocket: put DeviceReference in the anonymous namespace