Enable saving dynamic_arrays of all fundamental types. Also fix emupal
to save the indirection arrays properly when indirect color count is
provided up front.