fix extern declaration
mark memoized function as returning a reference so we get return_value_ptr #2
fix skipif to check for any valid storage module not just memory