Use glib slices instead of g_malloc in scan implementation

Update some RNG object code not yet in build system.