smap_new not creating a proper refcounted array
less restrictive test for simple map lookup
renamings and fixes for select example