expose intmap_compact and intmap_force functions. Clean up use of NULL in testing