update s_refs to cover the global env

found bug in implementation of prim1_to_bc when updating the global
env; will fix in next commit.