dgram tests/improvements

Also requires https://github.com/tessel/firmware/pull/104. Should be ready now.
Wrong cast?